<?php
Yii::app()->getClientScript()->registerScriptFile('http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js');
Yii::app()->getClientScript()->registerScriptFile( Yii::app()->request->baseUrl.'/js/voice.js');


Yii::app()->getClientScript()->registerCssFile(Yii::app()->request->baseUrl.'/css/ui.tabs.css');
Yii::app()->getClientScript()->registerScriptFile( Yii::app()->request->baseUrl.'/js/ui.tabs.js');
?><ul id="boxP<?php echo $data->id;?>" class="boxP">
<li>
<a href="#fragment<?php echo $data->id;?>0-1" title="有道" >
<span>有道</span></a>
</li>
<li>
<a href="#fragment<?php echo $data->id;?>0-2" title="百度" >
<span>百度</span></a>
</li>

</ul>


	<div id="fragment<?php echo $data->id;?>0-1" class="dictdetail">
		    <?php
		if($data->youdaoP){
			foreach($data->youdaoP as $p)
				if($p->type==0){
			?>
			<span class="pronounce">
	    		<span class="phonetic"><?php echo $p->symbol;?></span>
				<a data-4log="dict.basic.ec.voice" data-rel="http://dict.youdao.com/dictvoice?audio=<?php echo $data->word;?>" class="voice sp dictvoice" title="真人发音" href="#"></a>
			</span>
		<?php }elseif ($p->type==1){
			
				?>
						<span class="pronounce">英
				    		<span class="phonetic"><?php echo $p->symbol;?></span>
							<a data-4log="dict.basic.ec.voice" data-rel="http://dict.youdao.com/dictvoice?audio=<?php echo $data->word;?>&type=1" class="voice sp dictvoice" title="真人发音" href="#"></a>
						</span>
					<?php 
				}elseif ($p->type==2){
			
				?>
						<span class="pronounce">美
				    		<span class="phonetic"><?php echo $p->symbol;?></span>
							<a data-4log="dict.basic.ec.voice" data-rel="http://dict.youdao.com/dictvoice?audio=<?php echo $data->word;?>&type=2" class="voice sp dictvoice" title="真人发音" href="#"></a>
						</span>
					<?php 
				}
			}?>
	</div>
	
	
	
	<div id="fragment<?php echo $data->id;?>0-2" class="dictdetail">
<?php
if($data->baiduP){
	foreach($data->baiduP as $p)
	if($p->type==0){
		?>
			<span class="pronounce">
	    		<span class="phonetic"><?php echo $p->symbol;?></span>
				<a data-4log="dict.basic.ec.voice" data-rel="<?php echo $p->pronunciation;?>" class="voice sp dictvoice" title="真人发音" href="#"></a>
			</span>
		<?php }elseif ($p->type==1){
			
				?>
						<span class="pronounce">英
				    		<span class="phonetic"><?php echo $p->symbol;?></span>
							<a data-4log="dict.basic.ec.voice" data-rel="<?php echo $p->pronunciation;?>"  class="voice sp dictvoice" title="真人发音" href="#"></a>
						</span>
					<?php 
				}elseif ($p->type==2){
			
				?>
						<span class="pronounce">美
				    		<span class="phonetic"><?php echo $p->symbol;?></span>
							<a data-4log="dict.basic.ec.voice" data-rel="<?php echo $p->pronunciation;?>"  class="voice sp dictvoice" title="真人发音" href="#"></a>
						</span>
					<?php 
				}
			}?>
	</div>
	<script>
$(document).ready(function(){
$('.boxP').tabs({ fxFade: true, fxSpeed: 'fast' });});
</script>